@import "../../base.less";

@import "./_var.less";

@import "../../utilities/_animation.less";

.@{prefix}-popup {
  &--content {
    position: fixed;
    z-index: @mask-z-index;
  }

  &--content-top {
    top: 0;
    left: 0;
    right: 0;
  }

  &--content-right {
    top: 0;
    right: 0;
    bottom: 0;
  }

  &--content-bottom {
    left: 0;
    right: 0;
    bottom: 0;
  }

  &--content-left {
    top: 0;
    left: 0;
    bottom: 0;
  }

  &--content-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.slide-top-enter-active {
  animation: @slide-top-in .3s;
}

.slide-top-leave-active {
  animation: @slide-top-out .3s;
}

.slide-right-enter-active {
  animation: @slide-right-in .3s;
}

.slide-right-leave-active {
  animation: @slide-right-out .3s;
}

.slide-bottom-enter-active {
  animation: @slide-bottom-in .3s;
}

.slide-bottom-leave-active {
  animation: @slide-bottom-out .3s;
}

.slide-left-enter-active {
  animation: @slide-left-in .3s;
}

.slide-left-leave-active {
  animation: @slide-left-out .3s;
}

.fade-zoom-enter-active {
  animation: @fade-zoom-in .35s;
}

.fade-zoom-leave-active {
  animation: @fade-zoom-out .35s;
}

.fade-enter-active {
  animation: @fade-in .3s;
}

.fade-leave-active {
  animation: @fade-out .3s;
}
